package com.ruoyi.tjfx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tjfx.mapper.TbTjfxNhdbMapper;
import com.ruoyi.tjfx.domain.TbTjfxNhdb;
import com.ruoyi.tjfx.service.ITbTjfxNhdbService;

/**
 * 各仪能耗对比Service业务层处理
 *
 * @author ruoyi
 * @date 2023-11-11
 */
@Service
public class TbTjfxNhdbServiceImpl implements ITbTjfxNhdbService
{
    @Autowired
    private TbTjfxNhdbMapper tbTjfxNhdbMapper;

    /**
     * 查询各仪能耗对比
     *
     * @param id 各仪能耗对比主键
     * @return 各仪能耗对比
     */
    @Override
    public TbTjfxNhdb selectTbTjfxNhdbById(Long id)
    {
        return tbTjfxNhdbMapper.selectTbTjfxNhdbById(id);
    }

    /**
     * 查询各仪能耗对比列表
     *
     * @param tbTjfxNhdb 各仪能耗对比
     * @return 各仪能耗对比
     */
    @Override
    public List<TbTjfxNhdb> selectTbTjfxNhdbList(TbTjfxNhdb tbTjfxNhdb)
    {
        return tbTjfxNhdbMapper.selectTbTjfxNhdbList(tbTjfxNhdb);
    }

    /**
     * 新增各仪能耗对比
     *
     * @param tbTjfxNhdb 各仪能耗对比
     * @return 结果
     */
    @Override
    public int insertTbTjfxNhdb(TbTjfxNhdb tbTjfxNhdb)
    {
        return tbTjfxNhdbMapper.insertTbTjfxNhdb(tbTjfxNhdb);
    }

    /**
     * 修改各仪能耗对比
     *
     * @param tbTjfxNhdb 各仪能耗对比
     * @return 结果
     */
    @Override
    public int updateTbTjfxNhdb(TbTjfxNhdb tbTjfxNhdb)
    {
        return tbTjfxNhdbMapper.updateTbTjfxNhdb(tbTjfxNhdb);
    }

    /**
     * 批量删除各仪能耗对比
     *
     * @param ids 需要删除的各仪能耗对比主键
     * @return 结果
     */
    @Override
    public int deleteTbTjfxNhdbByIds(Long[] ids)
    {
        return tbTjfxNhdbMapper.deleteTbTjfxNhdbByIds(ids);
    }

    /**
     * 删除各仪能耗对比信息
     *
     * @param id 各仪能耗对比主键
     * @return 结果
     */
    @Override
    public int deleteTbTjfxNhdbById(Long id)
    {
        return tbTjfxNhdbMapper.deleteTbTjfxNhdbById(id);
    }

    @Override
    public List<TbTjfxNhdb> selectTbTjfxNhdbListyb(TbTjfxNhdb tbTjfxNhdb) {
        return tbTjfxNhdbMapper.selectTbTjfxNhdbListyb(tbTjfxNhdb);
    }
}
